package org.lyh.base.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.lyh.base.query.BaseQuery;
import org.lyh.org.domain.Department;

import java.util.List;
@Mapper
public interface BaseMapper<T> {
    //新增
    T selectById(Long id);
    List<T> selectAll();
    void insert(T department);
    void deleteById(Long id);
    void update(T department);

    void batchDelete(List<Long> ids);

    Long getTotal(BaseQuery baseQuery);

    List<T> queryPage(BaseQuery baseQuery);
}
